@isTest private class DiscussionForumSubscribersTest 
{
    static testMethod void myUnitTest() 
    {
    	try
    	{
            GenerateEnvironmentTest.gen();
            Test.startTest();
                        
            DiscussionForumSubscribersEmailServices eS = new DiscussionForumSubscribersEmailServices();
            
            eS.setIsTest( true );
            eS.sendMemberLeaveAdd( 'TeamMemberJoin', GenerateEnvironmentTest.newDiscussionMember.Id);
            eS.setIsTest( true );
            eS.sendMemberLeaveAdd( 'TeamMemberAdd', GenerateEnvironmentTest.newDiscussionMember.Id);
                        
            eS.setIsTest( true );
            eS.sendNewTopicMessage(  GenerateEnvironmentTest.newTopic.Id,'new' );
            eS.setIsTest( true );
            eS.sendNewTopicMessage(  GenerateEnvironmentTest.newTopic.Id, 'update' );
            
            eS.setIsTest( true );
            eS.sendNewReplyMessage( GenerateEnvironmentTest.newMessage.Id, 'new' );
            eS.setIsTest( true );
            eS.sendNewReplyMessage( GenerateEnvironmentTest.newMessage.Id, 'update' );

			
            Test.stopTest();
        }
        catch(Exception e)
        {
            throw e;
        }
    }            
}